package org.symkom.expression;

/**
 * 
 * @author Maciej Koch
 * e.g x ^ b0
 * x => operator
 * ^ => sign
 * b => index
 * 0 => myId 
 */
public abstract class Expression extends SKObject{
	
	double value;
	String sign = "";
	String operator = "";
	int myId;
	String index = "";
	
	public double getValue() {
		return value;
	}
	public void setValue(double value) {
		this.value = value;
	}
	public String getOwnFormula() {
		return operator + sign + index + myId;
	}
	public String getRealFormula() {
		return operator + sign + value;
	}
	public String getOwnIndex() {
		return index + myId;
	}
	abstract public double getX(double x);
}
